package com.fyt.ZhongYaoApp.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class Doctor {
    private int id;
    private String dName;
    private int catId;
    private String worktime;
    private String patNum;
    private String star;
    private String dPic;
    private int hospitalId;
    private String phone;
    private String introduction;
    private String drection;
    private int sex;
    private List<Integer> good = new ArrayList<>();
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;// 创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;// 更新时间

    public Doctor() {
    }

    public Doctor(int id, LocalDateTime updateTime, LocalDateTime createTime, String phone, int hospital, String dPic, String star, String patNum, String worktime, int catId, String dName) {
        this.id = id;
        this.updateTime = updateTime;
        this.createTime = createTime;
        this.phone = phone;
        this.hospitalId = hospital;
        this.dPic = dPic;
        this.star = star;
        this.patNum = patNum;
        this.worktime = worktime;
        this.catId = catId;
        this.dName = dName;
    }
}
